﻿using MDK.Winform;

namespace MDK.Service
{
    public class HandoverApiController
    {
        public bool BeginHandover(BeginHandoverRequest req)
        {
            App.flow.BeginHandover(req.handoverId, req.needCentrifuge, req.priority);
            return true;
        }
        /// <summary>
        /// 结束交接(关门)
        /// </summary>
        public void EndHandover()
        {
            App.flow.EndHandover();
            // 调用Flow.EndHandover
        }
    }

    public class BeginHandoverRequest
    {
        public string handoverId {get;set; }
        public bool needCentrifuge { get; set; }
        public bool priority { get; set; }
    }
}